package com.rfsp.mcp.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.rfsp.common.base.BaseMapper;
import com.rfsp.mcp.pojo.po.FinancePO;
import com.rfsp.mcp.pojo.sdto.FinanceSDTO;
import com.rfsp.mcp.pojo.vo.FinanceVO;
import org.springframework.stereotype.Repository;

@Repository
public interface FinanceMapper extends BaseMapper<FinancePO> {
    List<FinanceVO> get(FinanceSDTO sdto);

    @Select("SELECT * FROM MCP_FINANCE WHERE auth_id = #{authId}")
    FinancePO getByAuthId(@Param("authId") Long authId);
    
}